home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Capture / AMCap / amcap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  4.1 KB  |  144 lines

  1. //------------------------------------------------------------------------------
  2. // File: AMCap.h
  3. //
  4. // Desc: DirectShow sample code - audio/video capture.
  5. //
  6. // Copyright (c) 1993-2001 Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9.  
  10. #define ID_APP      1000
  11.  
  12. /* Menu Items */
  13. #define MENU_EXIT               4
  14. #define MENU_SET_CAP_FILE    5
  15. #define MENU_ALLOC_CAP_FILE    6
  16. #define MENU_START_CAP        7
  17. #define MENU_STOP_CAP        8
  18. #define MENU_CAP_CC        9
  19. #define MENU_CAP_AUDIO        12
  20. #define MENU_AUDIOFORMAT    13
  21. #define MENU_FRAMERATE        14
  22. #define MENU_PREVIEW        15
  23. #define MENU_VDEVICE0        16
  24. #define MENU_VDEVICE1        17
  25. #define MENU_VDEVICE2        18
  26. #define MENU_VDEVICE3        19
  27. #define MENU_VDEVICE4        20
  28. #define MENU_VDEVICE5        21
  29. #define MENU_VDEVICE6        22
  30. #define MENU_VDEVICE7        23
  31. #define MENU_VDEVICE8        24
  32. #define MENU_VDEVICE9        25
  33. #define MENU_ADEVICE0        26
  34. #define MENU_ADEVICE1        27
  35. #define MENU_ADEVICE2        28
  36. #define MENU_ADEVICE3        29
  37. #define MENU_ADEVICE4        30
  38. #define MENU_ADEVICE5        31
  39. #define MENU_ADEVICE6        32
  40. #define MENU_ADEVICE7        33
  41. #define MENU_ADEVICE8        34
  42. #define MENU_ADEVICE9        35
  43. #define MENU_ABOUT              36
  44. #define MENU_SAVE_CAP_FILE    37
  45. #define MENU_NOMASTER        38
  46. #define MENU_AUDIOMASTER    39
  47. #define MENU_VIDEOMASTER    40
  48. #define MENU_TIMELIMIT        41
  49. #define MENU_DIALOG0        42
  50. #define MENU_DIALOG1        43
  51. #define MENU_DIALOG2        44
  52. #define MENU_DIALOG3        45
  53. #define MENU_DIALOG4        46
  54. #define MENU_DIALOG5        47
  55. #define MENU_DIALOG6        48
  56. #define MENU_DIALOG7        49
  57. #define MENU_DIALOG8        50
  58. #define MENU_DIALOG9        51
  59. #define MENU_DIALOGA        52
  60. #define MENU_DIALOGB        53
  61. #define MENU_DIALOGC        54
  62. #define MENU_DIALOGD        55
  63. #define MENU_DIALOGE        56
  64. #define MENU_DIALOGF        57    // !!! more?
  65.  
  66. // Dialogs
  67. #define IDD_ABOUT                   600
  68. #define IDD_AllocCapFileSpace       601
  69. #define IDD_FrameRateDialog         602
  70. #define IDD_PressAKeyDialog         603
  71. #define IDD_TimeLimitDialog         604
  72.  
  73. // defines for dialogs
  74. #define IDD_SetCapFileFree          400
  75. #define IDD_SetCapFileSize          401
  76. #define IDC_FRAMERATE            402
  77. #define IDC_CAPFILENAME            403
  78. #define IDC_TIMELIMIT            404
  79. #define IDC_USETIMELIMIT        405
  80. #define IDC_USEFRAMERATE        406
  81.  
  82. // window messages
  83. #define WM_FGNOTIFY    WM_USER+1
  84.  
  85. // device notification definitions
  86. #if (WINVER < 0x0500)
  87.  
  88. #define DBT_DEVTYP_DEVICEINTERFACE      0x00000005  // device interface class
  89. #define DEVICE_NOTIFY_WINDOW_HANDLE     0x00000000
  90. typedef  PVOID           HDEVNOTIFY;
  91.  
  92. #endif
  93.  
  94. extern "C"
  95. {
  96.     typedef BOOL (/* WINUSERAPI */ WINAPI *PUnregisterDeviceNotification)(
  97.         IN HDEVNOTIFY Handle
  98.         );
  99.  
  100.     typedef HDEVNOTIFY (/* WINUSERAPI */ WINAPI *PRegisterDeviceNotificationA)(
  101.         IN HANDLE hRecipient,
  102.         IN LPVOID NotificationFilter,
  103.         IN DWORD Flags
  104.         );
  105.  
  106.     typedef HDEVNOTIFY (/* WINUSERAPI */ WINAPI *PRegisterDeviceNotificationW)(
  107.         IN HANDLE hRecipient,
  108.         IN LPVOID NotificationFilter,
  109.         IN DWORD Flags
  110.         );
  111. }
  112. #ifdef UNICODE
  113. #define PRegisterDeviceNotification  PRegisterDeviceNotificationW
  114. #else
  115. #define PRegisterDeviceNotification  PRegisterDeviceNotificationA
  116. #endif // !UNICODE
  117.  
  118. #if (WINVER < 0x0500)
  119.  
  120. typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A {
  121.     DWORD       dbcc_size;
  122.     DWORD       dbcc_devicetype;
  123.     DWORD       dbcc_reserved;
  124.     GUID        dbcc_classguid;
  125.     char        dbcc_name[1];
  126. } DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
  127.  
  128. typedef struct _DEV_BROADCAST_DEVICEINTERFACE_W {
  129.     DWORD       dbcc_size;
  130.     DWORD       dbcc_devicetype;
  131.     DWORD       dbcc_reserved;
  132.     GUID        dbcc_classguid;
  133.     wchar_t     dbcc_name[1];
  134. } DEV_BROADCAST_DEVICEINTERFACE_W, *PDEV_BROADCAST_DEVICEINTERFACE_W;
  135.  
  136. #ifdef UNICODE
  137. typedef DEV_BROADCAST_DEVICEINTERFACE_W   DEV_BROADCAST_DEVICEINTERFACE;
  138. typedef PDEV_BROADCAST_DEVICEINTERFACE_W  PDEV_BROADCAST_DEVICEINTERFACE;
  139. #else
  140. typedef DEV_BROADCAST_DEVICEINTERFACE_A   DEV_BROADCAST_DEVICEINTERFACE;
  141. typedef PDEV_BROADCAST_DEVICEINTERFACE_A  PDEV_BROADCAST_DEVICEINTERFACE;
  142. #endif // UNICODE
  143. #endif // WINVER
  144.